![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@types/lodash-es
Advanced tools
Package description
The @types/lodash-es package provides TypeScript type definitions for lodash-es, a library that offers utility functions for common programming tasks, including manipulating arrays, objects, and strings, as well as utilities for functions, logic, and numbers. This package is essential for TypeScript developers using lodash-es to ensure type safety and autocompletion in their development environment.
Array manipulation
Splits an array into groups the length of the specified size. In this example, it splits an array into chunks of 2.
import { chunk } from 'lodash-es';
const array = ['a', 'b', 'c', 'd'];
const chunkedArray = chunk(array, 2);
Object manipulation
Retrieves all the names of the object's own enumerable property names. In this example, it gets the keys of an object.
import { keys } from 'lodash-es';
const object = { 'a': 1, 'b': 2, 'c': 3 };
const objectKeys = keys(object);
String manipulation
Converts a string to camel case. In this example, it converts 'Foo Bar' to 'fooBar'.
import { camelCase } from 'lodash-es';
const text = 'Foo Bar';
const camelCasedText = camelCase(text);
Function utilities
Creates a debounced function that delays invoking the provided function until after wait milliseconds have elapsed since the last time the debounced function was invoked. Useful for performance optimization, such as limiting how often a function is called on events like resize.
import { debounce } from 'lodash-es';
window.addEventListener('resize', debounce(() => {
console.log('Resize event handler');
}, 200));
Underscore is a utility library similar to lodash-es, offering functions for working with arrays, objects, and functions. While lodash-es focuses on a modular approach, allowing for tree shaking in modern JavaScript projects, Underscore is typically used as a monolithic utility library.
Ramda is a functional programming library that provides utility functions for working with JavaScript data types in a functional manner. Unlike lodash-es, which is more imperative, Ramda emphasizes a functional programming paradigm, making it suitable for developers looking for a more functional approach to JavaScript.
Readme
npm install --save @types/lodash-es
This package contains type definitions for lodash-es (http://lodash.com/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash-es.
These definitions were written by Stephen Lautier, and e-cloud.
FAQs
Unknown package
The npm package @types/lodash-es receives a total of 1,681,650 weekly downloads. As such, @types/lodash-es popularity was classified as popular.
We found that @types/lodash-es demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.